home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{A2519F5D-D953-41FB-A034-2D873A107F26}#1.0#0"; "ciaXPCalendar.ocx"
- Begin VB.Form Form1
- BackColor = &H00FFFFFF&
- Caption = "Form1"
- ClientHeight = 14220
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 14610
- LinkTopic = "Form1"
- ScaleHeight = 14220
- ScaleWidth = 14610
- StartUpPosition = 3 'Windows Default
- Begin ciaXPStyleCalendar.XPCalendar XPCalendar1
- Height = 8940
- Left = 210
- TabIndex = 26
- Top = 150
- Width = 8835
- _ExtentX = 15584
- _ExtentY = 15769
- BeginProperty LeftFootNoteFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty RightFootNoteFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty CenterFootNoteFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty MonthTitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- TitleForeColor = 13977088
- BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- FirstDayOfWeek = 5
- BeginProperty DaysFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty MonthFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty ComboSpinFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- GlobalDefaultThemeColors= 0 'False
- GlobalDefaultThemeColors= 0 'False
- Style = 2
- MonthBorderColor= 255
- DaysForeColor = 8421631
- DaysBackColor = 14653050
- DaysBorderColor = 14121559
- MouseIcon = "Form1.frx":0000
- PrevNextColor = 12632256
- ComboSpinBorderColor= 12164479
- End
- Begin VB.TextBox txtYear
- Height = 270
- Left = 11805
- Locked = -1 'True
- TabIndex = 24
- Text = "Text1"
- Top = 2430
- Width = 885
- End
- Begin VB.HScrollBar sYear
- Height = 270
- Left = 12975
- Max = 9000
- Min = 1
- TabIndex = 23
- Top = 2430
- Value = 1
- Width = 525
- End
- Begin VB.TextBox txtQuarter
- Height = 270
- Left = 11805
- Locked = -1 'True
- TabIndex = 21
- Text = "Text1"
- Top = 2100
- Width = 885
- End
- Begin VB.HScrollBar sQuarter
- Height = 270
- Left = 12975
- Max = 4
- Min = 1
- TabIndex = 20
- Top = 2100
- Value = 1
- Width = 525
- End
- Begin VB.ComboBox cboMonth
- Height = 315
- Left = 11805
- TabIndex = 18
- Text = "Combo1"
- Top = 1725
- Width = 1575
- End
- Begin VB.ComboBox cboFirstDayOfWeek
- Height = 315
- Left = 11805
- TabIndex = 16
- Text = "Combo1"
- Top = 1350
- Width = 1575
- End
- Begin VB.ComboBox cboMonthTitleAlignment
- Height = 315
- Left = 11775
- TabIndex = 14
- Text = "Combo1"
- Top = 4755
- Width = 1575
- End
- Begin VB.ComboBox cboTitleAlignment
- Height = 315
- Left = 11775
- TabIndex = 12
- Text = "Combo1"
- Top = 4395
- Width = 1575
- End
- Begin VB.TextBox txtRighttFootNote
- Height = 285
- Left = 11775
- TabIndex = 10
- Top = 4065
- Width = 2565
- End
- Begin VB.TextBox txtCenterFootNote
- Height = 285
- Left = 11775
- TabIndex = 8
- Top = 3735
- Width = 2565
- End
- Begin VB.TextBox txtLeftFootNote
- Height = 285
- Left = 11775
- TabIndex = 6
- Top = 3405
- Width = 2565
- End
- Begin VB.TextBox txtTitle
- Height = 285
- Left = 11775
- TabIndex = 4
- Top = 3090
- Width = 2565
- End
- Begin VB.ComboBox cboColorScheme
- Height = 315
- Left = 11790
- TabIndex = 2
- Text = "Combo1"
- Top = 585
- Width = 1575
- End
- Begin VB.ComboBox cboStyle
- Height = 315
- Left = 11790
- TabIndex = 0
- Text = "Combo1"
- Top = 225
- Width = 1575
- End
- Begin VB.Label Label13
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Calendar Year:"
- Height = 195
- Left = 10605
- TabIndex = 25
- Top = 2475
- Width = 1050
- End
- Begin VB.Label Label12
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Calendar Quarter:"
- Height = 195
- Left = 10410
- TabIndex = 22
- Top = 2145
- Width = 1245
- End
- Begin VB.Label Label10
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Calendar Month:"
- Height = 195
- Left = 10500
- TabIndex = 19
- Top = 1770
- Width = 1170
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "First Day of Week:"
- Height = 195
- Left = 10365
- TabIndex = 17
- Top = 1395
- Width = 1320
- End
- Begin VB.Label Label9
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Month Title Alignment:"
- Height = 195
- Left = 10065
- TabIndex = 15
- Top = 4800
- Width = 1575
- End
- Begin VB.Label Label8
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Title Alignment:"
- Height = 195
- Left = 10575
- TabIndex = 13
- Top = 4440
- Width = 1080
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Right FootNote:"
- Height = 195
- Left = 10515
- TabIndex = 11
- Top = 4095
- Width = 1125
- End
- Begin VB.Label Label6
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Center FootNote:"
- Height = 195
- Left = 10425
- TabIndex = 9
- Top = 3765
- Width = 1215
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Left FootNote:"
- Height = 195
- Left = 10635
- TabIndex = 7
- Top = 3435
- Width = 1020
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Title:"
- Height = 195
- Left = 11310
- TabIndex = 5
- Top = 3120
- Width = 345
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Color Scheme:"
- Height = 195
- Left = 10650
- TabIndex = 3
- Top = 630
- Width = 1035
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Style:"
- Height = 195
- Left = 11310
- TabIndex = 1
- Top = 270
- Width = 390
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim bLoaded As Boolean
- Private Sub Form_Load()
- With cboTitleAlignment
- .AddItem "Align Left"
- .AddItem "Align Right"
- .AddItem "Align Center"
- End With
- With cboMonthTitleAlignment
- .AddItem "Align Left"
- .AddItem "Align Right"
- .AddItem "Align Center"
- End With
- With cboStyle
- .AddItem "Monthly"
- .AddItem "Quarterly"
- .AddItem "Annually"
- .AddItem "Annual Compact"
- End With
- With cboColorScheme
- .AddItem "XPBlue"
- .AddItem "XPSilver"
- .AddItem "XPOlive"
- End With
- With cboFirstDayOfWeek
- .AddItem "1 - Sunday"
- .AddItem "2 - Monday"
- .AddItem "3 - Tuesday"
- .AddItem "4 - Wednesday"
- .AddItem "5 - Thursday"
- .AddItem "6 - Friday"
- .AddItem "7 - Saturday"
- End With
- With cboMonth
- .AddItem "January"
- .AddItem "February"
- .AddItem "March"
- .AddItem "April"
- .AddItem "May"
- .AddItem "June"
- .AddItem "July"
- .AddItem "August"
- .AddItem "September"
- .AddItem "October"
- .AddItem "November"
- .AddItem "December"
- End With
- UpdateSettings
- End Sub
- Private Sub txtCenterFootNote_Change()
- XPCalendar1.CenterFootNote = txtCenterFootNote
- End Sub
- Private Sub txtLeftFootNote_Change()
- XPCalendar1.LeftFootNote = txtLeftFootNote
- End Sub
- Private Sub txtRighttFootNote_Change()
- XPCalendar1.RightFootNote = txtRighttFootNote
- End Sub
- Private Sub txtTitle_Change()
- XPCalendar1.Title = txtTitle
- End Sub
- Private Sub cboMonthTitleAlignment_Click()
- XPCalendar1.MonthTitleAlignment = cboMonthTitleAlignment.ListIndex
- End Sub
- Private Sub cboTitleAlignment_Click()
- XPCalendar1.TitleAlignment = cboTitleAlignment.ListIndex
- End Sub
- Private Sub cboStyle_Click()
- XPCalendar1.Style = cboStyle.ListIndex
- End Sub
- Private Sub cboColorScheme_Click()
- XPCalendar1.Theme = cboColorScheme.ListIndex
- End Sub
- Private Sub cboFirstDayOfWeek_Click()
- XPCalendar1.FirstDayOfWeek = cboFirstDayOfWeek.ListIndex + 1
- End Sub
- Private Sub sYear_Change()
- If Not bLoaded Then Exit Sub
- XPCalendar1.CalendarYear = sYear.Value
- UpdateSettings
- End Sub
- Private Sub sQuarter_Change()
- If Not bLoaded Then Exit Sub
- XPCalendar1.CalendarQuarter = sQuarter.Value
- UpdateSettings
- End Sub
- Private Sub cboMonth_Click()
- If Not bLoaded Then Exit Sub
- XPCalendar1.CalendarMonth = cboMonth.ListIndex + 1
- UpdateSettings
- End Sub
- Private Sub UpdateSettings()
- bLoaded = False
- cboTitleAlignment.ListIndex = XPCalendar1.TitleAlignment
- cboMonthTitleAlignment.ListIndex = XPCalendar1.MonthTitleAlignment
- cboStyle.ListIndex = XPCalendar1.Style
- cboColorScheme.ListIndex = XPCalendar1.Theme
- cboFirstDayOfWeek.ListIndex = XPCalendar1.FirstDayOfWeek - 1
- cboMonth.ListIndex = XPCalendar1.CalendarMonth - 1
- txtQuarter = XPCalendar1.CalendarQuarter
- sQuarter.Value = XPCalendar1.CalendarQuarter
- txtYear = XPCalendar1.CalendarYear
- sYear.Value = XPCalendar1.CalendarYear
- bLoaded = True
- End Sub
- '************************ CALENDAR EVENTS ****************************************
- Private Sub XPCalendar1_DateClick(ByVal SelectedDate As Date)
- Debug.Print "XPCalendar1_DateClick.....Date = " & SelectedDate
- End Sub
- Private Sub XPCalendar1_MonthClick(ByVal SelectedDate As Date)
- Debug.Print "XPCalendar1_MonthClick.....Date = " & SelectedDate
- End Sub
-